package com.itheima.pojo;

public class ShoppingList {
    private Long listId;
    private String userName;
    private String foodName;
    private int count;

    public ShoppingList() {
    }

    public ShoppingList(Long listId, String userName, String foodName, int count) {
        this.listId = listId;
        this.userName = userName;
        this.foodName = foodName;
        this.count = count;
    }

    /**
     * 获取
     * @return listId
     */
    public Long getListId() {
        return listId;
    }

    /**
     * 设置
     * @param listId
     */
    public void setListId(Long listId) {
        this.listId = listId;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return foodName
     */
    public String getFoodName() {
        return foodName;
    }

    /**
     * 设置
     * @param foodName
     */
    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    /**
     * 获取
     * @return count
     */
    public int getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(int count) {
        this.count = count;
    }

    public String toString() {
        return "ShoppingList{listId = " + listId + ", userName = " + userName + ", foodName = " + foodName + ", count = " + count + "}";
    }
}
